package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_qiye")
public class Qiye extends Model<Qiye> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String QIYE_NAME = "qiye_name";
    public static final String QIYE_ADDRES = "qiye_addres";
    public static final String QIYE_PHONE = "qiye_phone";
    public static final String QIYE_IMAGE = "qiye_image";
    public static final String AUDIT_STATE = "audit_state";
    public static final String AUDIT_TIME = "audit_time";
    public static final String AUDIT_USER_NAME = "audit_user_name";
    public static final String LICENSE_IMG = "license_img";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String LICENSE = "license";
    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 认证企业用户ID
     */
    private Long userId;
    /**
     * 企业名称
     */
    private String qiyeName;
    /**
     * 企业地址
     */
    private String qiyeAddres;
    /**
     * 企业电话
     */
    private String qiyePhone;
    /**
     * 企业认证上传图片
     */
    private String qiyeImage;
    /**
     * 审核状态 1-待审核 2-审核通过 3-审核拒绝
     */
    private Integer auditState;
    /**
     * 审核时间
     */
    private LocalDateTime auditTime;
    /**
     * 审核人
     */
    private String auditUserName;
    /**
     * 营业执照照片
     */
    private String licenseImg;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 未删除-0  已删除-1
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 营业执照编号
     */
    private String license;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
